<?php
namespace app\Admin\controller;
use think\Controller;
use think\Loader;
use think\captcha\Captcha;
use think\facade\Session;
use think\db;

// +************
// | 后台
// +************
class Admin extends Logincheck
{
    
    function admin(){
    	$reviews = 0;
    	$review_exists = 0;
    	$review_sum = 0 ; 
    	$review = db('review')->where('mark',0)->count();
    	$review_exist = db('review_exist')->where('mark',0)->count();
    	if($review)$reviews=$review;
    	if($review_exist)$review_exists = $review_exist;
    	$review_sum = $review_exists + $reviews;
    	$cooperation = db('cooperation')->where('status',0)->count();
    	$comment= db('comment')->where('status',0)->count();
    	$this->assign("b1", $reviews);
    	$this->assign("b2", $review_exists);
    	$this->assign("bz", $review_sum );
    	$this->assign("b3", $cooperation);
    	$this->assign("b4", $comment);
        return $this->fetch();
    }
}


?>